/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gad.model;

import org.gad.genetics.Population;

/**
 *
 * @author Tomek
 */
public class RepeatStep extends CompositeStep {

    public RepeatStep( String name )
    {
        super( name );
    }

    @Override
    public Population Run(Population inputPopulation)
    {
        return inputPopulation;
    }

    @Override
    public void AddStep(Step child, int position)
    {
        if( _innerSteps.size() > 0 )
            throw new UnsupportedOperationException("This step can have only one child");
        
        super.AddStep(child, position);
    }
    
    
}
